1 <%@ Control Language="vb" AutoEventWireup="false" CodeBehind="NextPage.ascx.vb" Inherits="VBASPNETPreventMultipleWindows.NextPage" %>
2 <script type="text/javascript">
3 //If this window name not equal to sessions,will be goto InvalidPage
4 if (window.name != "<%=GetWindowName()%>") {
5 window.name = "InvalidPage";
6 window.open("InvalidPage.aspx", "_self");